-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Archetype TypeInfo::type_name accessor #980
Conversation
This feels like a compiler bug. Debug vs release builds shouldn't handle this case differently. I also have no clue how to resolve this / disambiguate 😄 |
Same here. Works in I see two solutions. Rename the getter to |
I'm just so confused. We use this pattern everywhere. |
With a bit of help from rust-lang Discord I present you #985 Can you spot the difference? 😜 |
Haha it took me a second. You left the |
No, I removed the cfg this time. It caused the field to be missing in release builds. |
Lol apparently i had my tabs mixed up. Glad to hear the world still makes sense. |
This adds an accessor to get the type name from Archetype.
I use this in ECS debugger when the Reflect is not available, to at least show the name of the Component type.